<?php
namespace app\controller;

use app\BaseController;
use think\Request;

use app\middleware\BackAuth;

class Index extends BaseController
{
    protected $middleware = [BackAuth::class];
    public function test(Request $request)
    {
//        var_dump($request->action());
//var_dump(app('http')->getName());
        return json(['code' => 200, 'msg' => 'aaa']);
    }
}
